/*     */ package eos.moe.dragoncore;
/*     */ 
/*     */ import java.io.IOException;
/*     */ import java.io.OutputStream;
/*     */ import java.nio.charset.Charset;
/*     */ import java.util.zip.CRC32;
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ public class ig
/*     */   extends OutputStream
/*     */ {
/*     */   private mn c;
/*     */   private char[] r;
/*     */   private xn f;
/*     */   private wi s;
/*     */   private dj m;
/*     */   private dk l;
/*  30 */   private le t = new le();
/*  31 */   private mh d = new mh();
/*  32 */   private CRC32 z = new CRC32();
/*  33 */   private xj i = new xj();
/*  34 */   private long w = 0L;
/*     */   private Charset q;
/*     */   private boolean g;
/*     */   
/*     */   public ig(OutputStream outputStream) throws IOException {
/*  39 */     this(outputStream, null, ei.q);
/*     */   }
/*     */   
/*     */   public ig(OutputStream outputStream, Charset charset) throws IOException {
/*  43 */     this(outputStream, null, charset);
/*     */   }
/*     */   
/*     */   public ig(OutputStream outputStream, char[] arrayOfChar) throws IOException {
/*  47 */     this(outputStream, arrayOfChar, ei.q);
/*     */   }
/*     */   
/*     */   public ig(OutputStream outputStream, char[] arrayOfChar, Charset charset) throws IOException {
/*  51 */     this(outputStream, arrayOfChar, charset, new xn());
/*     */   }
/*     */   
/*     */   public ig(OutputStream outputStream, char[] arrayOfChar, Charset charset, xn xn1) throws IOException {
/*  55 */     if (charset == null) {
/*  56 */       charset = ei.q;
/*     */     }
/*     */     
/*  59 */     this.c = new mn(outputStream);
/*  60 */     this.r = arrayOfChar;
/*  61 */     this.q = charset;
/*  62 */     this.f = v(xn1, this.c);
/*  63 */     this.g = false;
/*  64 */     v();
/*     */   }
/*     */   
/*     */   public void h(te te1) throws IOException {
/*  68 */     v(te1);
/*  69 */     z(te1);
/*     */ 
/*     */ 
/*     */ 
/*     */     
/*  74 */     this.s = v(te1);
/*     */   }
/*     */   
/*     */   public void write(int i) throws IOException {
/*  78 */     write(new byte[] { (byte)i });
/*     */   }
/*     */   
/*     */   public void write(byte[] arrayOfByte) throws IOException {
/*  82 */     write(arrayOfByte, 0, arrayOfByte.length);
/*     */   }
/*     */   
/*     */   public void write(byte[] arrayOfByte, int i, int j) throws IOException {
/*  86 */     h();
/*  87 */     this.z.update(arrayOfByte, i, j);
/*  88 */     this.s.write(arrayOfByte, i, j);
/*  89 */     this.w += j;
/*     */   }
/*     */   
/*     */   public dj v() throws IOException {
/*  93 */     this.s.v();
/*     */     
/*  95 */     long l = this.s.v();
/*  96 */     this.m.z(l);
/*  97 */     this.l.z(l);
/*     */     
/*  99 */     this.m.v(this.w);
/* 100 */     this.l.v(this.w);
/*     */     
/* 102 */     if (v(this.m)) {
/* 103 */       this.m.h(this.z.getValue());
/* 104 */       this.l.h(this.z.getValue());
/*     */     } 
/*     */     
/* 107 */     this.f.z().add(this.l);
/* 108 */     this.f.v().v().add(this.m);
/*     */     
/* 110 */     if (this.l.h()) {
/* 111 */       this.d.v(this.l, this.c);
/*     */     }
/* 113 */     z();
/* 114 */     return this.m;
/*     */   }
/*     */ 
/*     */   
/*     */   public void close() throws IOException {
/* 119 */     this.f.v().z(this.c.z());
/* 120 */     this.d.z(this.f, this.c, this.q);
/* 121 */     this.c.close();
/* 122 */     this.g = true;
/*     */   }
/*     */   
/*     */   public void v(String str) throws IOException {
/* 126 */     h();
/* 127 */     this.f.v().v(str);
/*     */   }
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\ig.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */